package com.xw.utils;

import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import cn.hutool.core.date.DateUnit;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 6/21/21 11:06 AM
 * @Version: 1.0
 */
public class TimedCacheUtil {

    public static final TimedCache<String, String> TOKEN_TIMED_CACHE = CacheUtil.newTimedCache(DateUnit.WEEK.getMillis() * 25);
    public static final TimedCache<String, String> CAPTCHA_TIMED_CACHE = CacheUtil.newTimedCache(DateUnit.MINUTE.getMillis() * 10);


}